<template>
  <div class="mystars">
    <hmheader title="我的收藏">
      <span
        slot="left"
        class="iconfont iconjiantou2"
        @click="$router.back()"
      ></span>
    </hmheader>
    <div class="content">
      <articleBlock
        v-for="item in startsList"
        :key="item.id"
        :postArticle="item"
      ></articleBlock>
    </div>
  </div>
</template>

<script>
import hmheader from "@/components/hmheader.vue";
import articleBlock from "@/components/articleBlock.vue";
import { user_star } from "@/apis/post.js";
import { Toast } from "vant";
export default {
  components: {
    hmheader,
    articleBlock,
  },
  data() {
    return {
      startsList: [],
    };
  },
  async mounted() {
    let res = await user_star();
    if (res.status == 200) this.startsList = res.data.data;
    // console.log(res);
  },
};
</script>

<style>
</style>